cmake_minimum_required(VERSION 3.5)
project(jni_monitor)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories("$ENV{JAVA_HOME}/include/")
include_directories("$ENV{JAVA_HOME}/include/linux")
include_directories("../")

link_directories("../")

set(SOURCE_FILES  jni_monitor.h jni_monitor.c)
add_library(jni_monitor SHARED ${SOURCE_FILES})
target_link_libraries(jni_monitor monitor)
